package com.mixsmart.spellsql.utils;

import com.mixsmart.spellsql.IGroup;
import com.mixsmart.spellsql.IOrder;
import com.mixsmart.spellsql.IQueryCondition;
import com.mixsmart.spellsql.IWhere;
import com.mixsmart.spellsql.QueryCondition;
import com.mixsmart.spellsql.StrNullCondition;
import com.mixsmart.spellsql.group.Group;
import com.mixsmart.spellsql.order.Order;
import com.mixsmart.spellsql.where.WhereContext;

/**
 * 组合条件
 * @author lmq
 * @version 1.0
 * @since 1.0
 */
public class Cnd {

	public static IQueryCondition where(IWhere exp) {
		return new QueryCondition(new WhereContext(exp));
	}
	
	public static IGroup group(IGroup group) {
		return new Group(new StrNullCondition(), group);
	}
	
	public static IOrder order(IOrder order) {
		return new Order(new StrNullCondition(), order);
	}
	
}
